<?php

class Default_Model_Mail extends Zend_Db_Table_Abstract
{
    protected $_name = 'mailtemplate';        
    public function getDataId($id){        
        $query = $this->select()                        
                        ->from($this->_name)
                        ->where('id = "'.$id.'"');
        return $this->fetchRow($query);
    }
}